package com.example.bishe.mapper;

import com.example.bishe.entity.Admin;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author LDH
 * @since 2023/05/04
 */
@Mapper
public interface AdminMapper extends BaseMapper<Admin> {

    @Select("SELECT * FROM `admin` WHERE `account`=#{account} AND `password`=#{password} ")
    Admin getOne(@Param("account") String account, @Param("password") String password);

}
